package com.ruoyi.swimming.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.swimming.domian.News;

import java.util.List;

/**
 * 消息Mapper接口
 * 
 * @author ruoyi
 * @date 2021-07-17
 */
public interface NewsMapper extends BaseMapper<News>
{
    /**
     * 查询消息
     * 
     * @param id 消息ID
     * @return 消息
     */
    public News selectNewsById(Long id);

    /**
     * 查询消息列表
     * 
     * @param news 消息
     * @return 消息集合
     */
    public List<News> selectNewsList(News news);

}
